package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.UsedCar1;
import com.example.demo.entity.UsedCar2;
import com.example.demo.repository.UsedCar2Repository;
@Service
public class UsedCar2Service extends BaseService<UsedCar2, Integer>{

	@Autowired
	UsedCar2Repository UsedCar2DAO;
	
	public List<UsedCar2> findByUsedCar(UsedCar1 usedCar1) {
		// TODO Auto-generated method stub
		return UsedCar2DAO.findByUsedCar(usedCar1);
	}

	public UsedCar2 findByUsedCar2(Integer id) {
		// TODO Auto-generated method stub
		return UsedCar2DAO.findByUsedCar2(id);
	}

	

}
